package chapter5.Example10;

import java.io.IOException;
import java.util.Random;

public class Example10 {
    public static void main(String[] args) throws IOException {
        // System类
       long time = System.currentTimeMillis();
        System.out.println("time = " + time);
        // Runtime类
        Runtime rt = Runtime.getRuntime();
      //   while (true){
            //  rt.exec("notepad.exe");
    //    }
        // Math类
        System.out.println(Math.random());
        System.out.println(Math.PI);
        // Random
        Random random = new Random();
        for(int i = 0;i < 10;i++){
            System.out.println(random.nextInt(56));
        }
    }
}
